package com.yonyou.brigade.third_parties.ctrip.groupmembers.pojo;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.yonyou.framework.base.entity.BaseEntity;

/**
 * <p>
 *
 * </p>
 *
 * @author jiangzhf@yonyou.com
 * @since 2018-05-03
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@TableName("ctrip_group_member")
public class CtripGroupMember extends BaseEntity<CtripGroupMember> {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    private Integer id;
    /**
     * 用户ID
     */
    private String userid;
    /**
     * 租户ID
     */
    private String tenantid;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 组ID
     */
    private Integer groupid;
    /**
     * 用户名称
     */
    private String username;
    /**
     * 用户编码
     */
    private String pcode;

    /**
     * 用户邮箱
     */
    private String email;

    /**
     * 部门名称
     */
    private String depart;

    /**
     * 备注
     */
    private String note;



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getTenantid() {
        return tenantid;
    }

    public void setTenantid(String tenantid) {
        this.tenantid = tenantid;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getGroupid() {
        return groupid;
    }

    public void setGroupid(Integer groupid) {
        this.groupid = groupid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    public static final String ID = "id";

    public static final String USERID = "userid";

    public static final String PHONE = "phone";

    public static final String GROUPID = "groupid";

    public static final String USERNAME = "username";

    public static final String PCODE = "pcode";

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getDepart() {
        return depart;
    }

    public void setDepart(String depart) {
        this.depart = depart;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CtripGroupMember{" +
                "id=" + id +
                ", userid=" + userid +
                ", tenantid=" + tenantid +
                ", phone=" + phone +
                ", groupid=" + groupid +
                ", username=" + username +
                ", pcode=" + pcode +
                "}";
    }
}

